package com.xy.demo.DesignMode.AdapterPattern;

/**
 * @BelongsProject: bill
 * @BelongsPackage: com.xy.demo.DesignMode.AdapterPattern
 * @Author: YangHao
 * @CreateTime: 2023-08-07  14:44
 * @Description:
 * @Version: 1.0
 */
public class AdapterClassOne extends AdapteeOne implements TargetOne {

    @Override
    public int outputDC5V() {
        int input = super.outputAC220V();
        int output = input / 44;
        System.out.println("输入电压："+input+"V"+",输出电压："+output+"V");
        return output;
    }
}
